package com.gzsj.genealogyManagement;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
// 扫描所有包路径com.gzsj.modules下的所有子目录
@ComponentScan(value = "com.gzsj")
public class PeopleApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(PeopleApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(PeopleApplication.class, args);
    }
}
